import { CustomerServiceOutlined } from '@ant-design/icons';
import { DefaultFooter } from '@ant-design/pro-layout';
import { Space } from 'antd';

const Footer: React.FC = () => {
  const defaultMessage = 'PMTeam技术部出品';
  const currentYear = new Date().getFullYear();
  return (
    <DefaultFooter
      copyright={`${currentYear} ${defaultMessage}`}
      links={[
        {
          key: 'Company WebSite',
          title: '公司官网',
          href: '#',
          blankTarget: true,
        },
        {
          key: 'IT Services',
          title: (
            <Space>
              <CustomerServiceOutlined /> <span>技术支持电话 : 400-123-1234</span>
            </Space>
          ),
          href: '#',
        },
      ]}
    />
  );
};

export default Footer;
